package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;

@ApiModel("员工类")
public class Personnel {
//    @TableId("per_id")
    @ApiModelProperty("员工编号")
    @TableId("per_id")
    private Integer perId;
    @ApiModelProperty("员工名字")
    private String perName;

    public Integer getPerId() {
        return perId;
    }

    public void setPerId(Integer perId) {
        this.perId = perId;
    }

    public String getPerName() {
        return perName;
    }

    public void setPerName(String perName) {
        this.perName = perName;
    }

    public Personnel(Integer perId, String perName) {
        this.perId = perId;
        this.perName = perName;
    }

    @Override
    public String toString() {
        return "Personnel{" +
                "perId=" + perId +
                ", perName='" + perName + '\'' +
                '}';
    }
}
